/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kom.item.resource;

/**
 *
 * @author Nathan
 */
public class Resource {

    public static Resource wood = new Resource("Wood", 0);
    public static Resource ore = new Resource("Ore", 1);
    public static Resource gem = new Resource("Gem", 2);
    public final String name;
    public final int sprite;

    public Resource(String name, int sprite) {
        if (name.length() > 8) {
            throw new RuntimeException("Name cannot be longer than 8 chars!");
        }
        this.name = name;
        this.sprite = sprite;
    }
}
